package com.zj.esproxy.wrapper;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author arthur_zhou
 * @date 2024/4/10 17:36
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Key {
    private String query;
    @JSONField(name = "default_operator")
    private String defaultOperator;
    private List<Field> fields;

    @Data
    @AllArgsConstructor
    public static class Field {
        private String field;
        private Integer weight;
    }
}
